package com.yoyo.system.mapper;

import com.yoyo.system.domain.SysUserOnline;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zyl
 * @Date 2021/7/3 -15:46
 */
public interface SysUserOnlineMapper {
    SysUserOnline selectOnlineById(@Param("sessionId") String sessionId);

    void deleteOnlineById(@Param("sessionId") String sessionId);

    void saveOnline(SysUserOnline online);

    List<SysUserOnline> selectOnlineByExpired(@Param("lastAccessTime") String lastAccessTime);
}
